﻿<?php
  include("inc/global.inc");
	if($_GET['w_name']){
   $m_rs=mysql_query("select * from member where m_user='$_GET[w_name]'");
   $m_num=mysql_num_rows($m_rs);
   $m_row=mysql_fetch_array($m_rs);
   $member_id=$m_row[id];
   $template=$m_row[template];
 }else{
   echo "<script>location='error.htm';</script>";
 }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if($m_row[catalog_id3]){echo "$m_row[catalog_3]，";}?><?php if($m_row['catalog_id2']){echo "$m_row[catalog_2]，";}?><?php if($m_row[catalog_id1]){echo "$m_row[catalog_1]，";}?><?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?></title>

<?php if(strlen(trim($m_row[c_intro]))>10){ ?>
<meta name="description" content="<?php echo $m_row[c_intro]; ?>"/>
<?php }else{?>
<meta name="description" content="<?php if($m_row['c_mainpro']){echo $m_row['c_mainpro']."，";}?><?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?>"/>
<?php } ?>
<meta name="keywords" content="<?php if($m_row['catalog_id2']){echo "$m_row[catalog_2]，";}?><?php if($m_row[catalog_id1]){echo "$m_row[catalog_1]，";}?><?php if($m_row['c_mainpro']){echo $m_row['c_mainpro']."，";}?><?=$m_row['m_cname']?>" />
<link href="/template/<?=$_GET[id]?>/css/allcss.css" rel="stylesheet" type="text/css" />
<link href="/template/css/template.css" rel="stylesheet" type="text/css" />
<link href="/template/css/top1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("inc/top1.php")?>
<div class="main">
<?php include("inc/top2.php")?>
<div class="path size11"><a href="index.html">首页</a> >> 公司介绍</div>
<div class="left">
<?php include("inc/left.php")?>
</div>

<div class="right">
<div style="margin-bottom:15px; margin-top:15px; text-align:center;">
<script type="text/javascript">
var sogou_ad_id=92285;
var sogou_ad_height=90;
var sogou_ad_width=728;
</script>
<script language='JavaScript' type='text/javascript' src='http://images.sohu.com/cs/jsfile/js/c.js'></script>
</div>
<div class="rightbox">
<?php if($m_row[m_banner]){?><img src="http://img.sandib2b.cn/<?=$m_row['m_banner']?>" border="0" width="262" height="178" class="img" /><?php }?>
<div class="info" style="line-height:22px;"><?=unhtml($m_row['c_info'])?></div>
<div class="onl"></div>
</div>
<?php //
 $p_rs=mysql_query("select id,picture,p_title from product where member_id=".$member_id." and p_sh=1 order by id desc limit 10");
?>

<div class="rightbox">
<div class="path1"><div class=moreright><A class="size11" href="product-list/1.html">更多</A> </div><font class="b">最新产品</font></div>
<div class="probox">
  <ul>
  <?php
  while($p_row=mysql_fetch_array($p_rs)){
?>
  <li class="prolist">
    <a href="product/<?=$p_row['id']?>.html"><?php if(trim($p_row['picture'])){?><img src="http://img.sandib2b.cn/<?=$p_row['picture']?>" width="100" height="100" alt="<?=$p_row[p_title]?>" /><?php }else{?><img src="/images/InfoPic.gif" width="100" height="100" alt="<?=$p_row[p_title]?>"/><?php }?></a>
  <dt><a href="product/<?=$p_row['id']?>.html" title="<?=$p_row[p_title]?>"><?=mb_substr($p_row['p_title'],0,8,'utf-8')?></a></dt>
  </li>
<?php }
mysql_free_result($p_rs);
?>
  </ul>
<div class="onl"></div>
</div>
</div>

<div class="rightbox">
<div class="path1"><div class=moreright><A class="size11" href="hot-list/1.html">更多</A> </div><font class="b">热点产品</font></div>
<div class="probox">
  <ul>
<?php

	$hot_rs=mysql_query("select id,picture,p_title from hot_pro where member_id=".$member_id." and p_sh=1 order by id desc limit 10");

  while($p_row=mysql_fetch_array($hot_rs)){
?>
  <li class="prolist">
    <a href="hot/<?=$p_row['id']?>.html"><?php if(trim($p_row['picture'])){?><img src="http://img.sandib2b.cn/<?=$p_row['picture']?>" width="100" height="100" alt="<?=$p_row[p_title]?>" /><?php }else{?><img src="/images/InfoPic.gif" width="100" height="100" alt="<?=$p_row[p_title]?>"/><?php }?></a>
  <dt><a href="hot/<?=$p_row['id']?>.html" title="<?=$p_row[p_title]?>"><?=mb_substr($p_row['p_title'],0,8,'utf-8')?></a></dt>
  </li>
<?php }
mysql_free_result($hot_rs);
?>
  </ul>
<div class="onl"></div>
</div>
</div>

<div class="rightbox">
<div class="path1">
<div class="moreright"><A class="size11" href="/contact.html">更多</A> </div>
 <font class="b">联系方式</font></div>
<div class="profile">
  <table cellspacing="0" cellpadding="0" width="100%" class="tables data" border="0">

    <tr>
      <td height="25" align="right">公司名称：</td>
      <td height="25">&nbsp;<?=$m_row['m_cname']?></td>
    </tr>
    <tr>
      <td height="25" align="right">公司地址：</td>
      <td height="25">&nbsp;<?=$m_row[m_addre]?></td>
    </tr>
    <?php if($m_row[m_ts_tel]){?><tr>
      <td height="25" align="right">免费电话：</td>
      <td height="25">&nbsp;<b class="tel400 fontred"><?=$m_row[m_ts_tel]?></b></td>
    </tr><?php }?>
    <tr>
      <td height="25" align="right">公司电话：</td>
      <td height="25">&nbsp;<?=$m_row[m_tel]?></td>
    </tr>
    <tr>
      <td height="25" align="right">手机号码：</td>
      <td height="25">&nbsp;<?=$m_row[m_phone]?></td>
    </tr>
    <tr>
      <td height="25" align="right">传　　真：</td>
      <td height="25">&nbsp;<?=$m_row[m_fax]?></td>
    </tr>
    <tr>
      <td height="25" align="right">邮　　编：</td>
      <td height="25">&nbsp;<?=$m_row[m_zip]?></td>
    </tr>
 <?php if($m_row[m_qq]){?>
	  <tr>
	<td height="25" align="right">Q Q 号码：</td>
	<td height="25"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?=$m_row['m_qq']?>&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<?=$m_row['m_qq']?>:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>
<?=$m_row[m_qq]?>
	</td>
      </tr><?php }?>
    <tr>
      <td align="right">公司网址：</td>
      <td height="25">&nbsp;<a href="http://www.sandib2b.cn/cn/template/<?=$m_row['m_user']?>/">http://www.sandib2b.cn/cn/template/<?=$m_row['m_user']?>/</a></td>
    </tr>
    <tr>
      <td height="25" colspan="2"><table width="100%" height="97" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center"><a href="sentinquery.html"><img src="/template/images/msg.gif" width="140" height="45" border="0" /></a></td>
          </tr>
            </table></td>
      </tr>
  </table>
<div class="onl"></div>
</div>
</div>
</div>
<div class="onl"></div>
<div id="mian" class="topside20 downside20 side" align="center">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<div class="links">
<div class="title">友情链接</div>
<?php $l_rs=mysql_query("select * from member_link where member_id=".$member_id." and status=1 order by id asc");
      while($l_row=mysql_fetch_array($l_rs)){?>
	  <a href="<?=$l_row[link_url]?>" target="_blank"><?=$l_row[link_name]?></a>
<?php } mysql_free_result($l_rs);?>
<?php $l_rs=mysql_query("select * from seo_link where m_user!='".$m_row['m_row']."' order by id asc");
      while($l_row=mysql_fetch_array($l_rs)){?>
	  <a href="<?=$l_row[s_web]?>?<?=$l_row[id]?>" target="_blank"><?=$l_row[s_name]?></a>
<?php }mysql_free_result($l_rs);?>
</div>

<div class="onl"></div>
</div>

<?php include("inc/foot.php");
?>
</div>
</body>
</html>
